// file:api.js
// 1、导入axios以及拦截器
import service from './request'

// 2、定义登录函数接口
export const userLoginByPassword = (data) => {
    return service({
        url: '/user/user/userLoginByPassword',
        method: 'post',
        data
    })
};
export const userLoginByCode = (data) => {
    return service({
        url: '/user/user/userLoginByCode',
        method: 'post',
        data
    })
};
export const sendCode = (data) => {
    return service({
        url: '/user/user/sendCode',
        method: 'post',
        data
    })
};
export const findUser = (data) => {
    return service({
        url: '/user/user/findUser',
        method: 'post',
        data
    })
};

